<div align="center" style="margin:-20px 0px 0px 0px;">
<ul class="thumbs">
<?php 

foreach($friends as $friendRel)
{
	$friend = $friendRel->getUser();
?>
<li class="ui-corner-all ui-state-default">
	<a href="#profile/load/id/<?php echo $friend->getId();?>"><img style="margin-top: 5px; border: 0;" src="/core.php/photo/thumbnail/id/<?php echo $friend->getMainPhotoId();?>/type/mini"/></a>
	<div>&nbsp;<?php echo $friend->getFirstName();?>&nbsp;</div>
	<div>&nbsp;<?php echo $friend->getLastName();?>&nbsp;</div>
</li>
<?php
}
?>

</ul>
</div>